package com.mashibing.service.impl;

import com.mashibing.internalcommon.dto.Car;
import com.mashibing.internalcommon.dto.DriverCarBindingRelationship;
import com.mashibing.internalcommon.dto.DriverUser;
import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.remote.DriverUserClient;
import com.mashibing.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverUserServiceImpl implements DriverUserService {

    @Autowired
    private DriverUserClient driverUserClient;

    @Override
    public ResponseResult addDriverUser(DriverUser driverUser) {
        return driverUserClient.addUser(driverUser);
    }

    @Override
    public ResponseResult addCar(Car car) {
        return driverUserClient.addCar(car);
    }

    @Override
    public ResponseResult bind(DriverCarBindingRelationship driverCarBindingRelationship) {
        return driverUserClient.bind(driverCarBindingRelationship);
    }
}
